import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
// 路由动画
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { LoginComponent } from "./@theme/components/login/login.component";

const routes: Routes = [
  {
    path: '', redirectTo: '/login', pathMatch: 'full'
  },
  {
    path: 'login', component: LoginComponent
  },
  {
    path: 'main', loadChildren: './@theme/components/main/main.module#MainModule'
  },
  {
    path: '**', component: LoginComponent
  }
];
@NgModule({
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    RouterModule.forRoot(routes)
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {

}
 
